From e96781896f22c049c74c32f521ab45414aa03ae5 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 25 Mar 2010 07:40:09 +0000 Subject: [PATCH] x86: fix improper return value from relinquish_memory() While apparently only a theoretical possibility (domain_kill() has a BUG_ON() that wasn't reported to trigger so far), I still think it is better to have the code cleaned up. Signed-off-by: Jan Beulich --- xen/arch/x86/domain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c index 17f5c83c75..6321e56bfb 100644 --- a/xen/arch/x86/domain.c +++ b/xen/arch/x86/domain.c @@ -1808,6 +1808,7 @@ static int relinquish_memory( break; case -EAGAIN: case -EINTR: + ret = -EAGAIN; page_list_add(page, list); set_bit(_PGT_pinned, &page->u.inuse.type_info); put_page(page); -- 2.30.2